package PayrollCalculation;

//程序员以代码行数计算奖金，其中一行0.005
public class Developer extends Employee{
    //每行代码的奖金值
    private static final double BONUS_CODE_LINE = 0.05;

    public Developer(String name, double baseSalary, int codeLine) {
        super(name, baseSalary, codeLine);
    }

    @Override
    public double calculateSalary() {
        return baseSalary + performance * BONUS_CODE_LINE;
    }
}
